package com.yunqing.restkeeper.store.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunqing.restkeeper.store.api.entity.Dish;
import com.yunqing.restkeeper.store.api.entity.DishFlavor;

import java.util.List;
import java.util.Map;

/**
 * @ClassName IDishService
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/7/25
 */
public interface IDishService extends IService<Dish> {

    //新增菜品
    boolean save(Dish dish, List<DishFlavor> dishFlavorList);

    //修改菜品
    boolean update(Dish dish, List<DishFlavor> dishFlavorList);

    //根据分类信息与菜品名称查询相关数据列表
    List<Map<String,Object>> findEnableDishListInfo(String categoryId, String name);
}

